package com.leyou.pojo.dto;

import com.leyou.common.dto.BaseDTO;
import com.leyou.common.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class SpecParamDto extends BaseDTO implements Serializable  {
    private Long id;
    private Long CategoryId;
    private Long groupId;
    private String name;
    private Boolean numeric;
    private String unit;
    private Boolean generic;
    private Boolean searching;
    private String segments;
    private String options;
    private Object value;

    public SpecParamDto(BaseEntity entity) {
        super(entity);
    }


    public <T> T toEntity(Class<T> entityClass) {
        return super.toEntity(entityClass);
    }
}
